<template>
    <div>组件</div>
    <HeaderComp :title="19" age="19" @update-title="handleUpdate">
        <h1>内部的html文档</h1>
    </HeaderComp>
    <header-comp></header-comp>
</template>

<script setup>
import HeaderComp from '@/components/HeaderComp.vue';
function handleUpdate(params) {
    console.log("父组件收到了子组件的消息");
    console.log(params);

}
</script>